Repository navigation
fix(dock): stabilize overflow icon reveal animation - #1888
Merged
Merged
Conversation
Reviewer's GuideImplementationAdd the AppItem helper that stops the pending timer and refreshes icon geometry before a returning icon is revealed.
UIDrive overflow visibility and positioning explicitly, preparing layout and icon geometry before showing icons that return from overflow.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 2 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="panels/dock/taskmanager/package/TaskManager.qml" line_range="254" />
<code_context>
+ return
+ // Lay out and center the returning icon before revealing it.
+ delegateRoot.ListView.view.forceLayout()
+ appItem.syncIconPosition()
+ positionAnimationEnabled = true
}
</code_context>
<issue_to_address>
**Returning icons appear misplaced**
When a returning icon's launch animation is running during `preparePosition()`, `syncIconPosition()` stops the deferred position timer, but `icon.fixPosition()` returns while the launch animation is running, so `preparePosition()` reveals the icon at its stale position until another geometry change corrects it.
Defer syncing and revealing the icon until the launch animation ends, then update its position before showing it.
</issue_to_address>
### Comment 2
<location path="panels/dock/taskmanager/package/TaskManager.qml" line_range="253-255" />
<code_context>
+ if (hiddenByOverflow || !delegateRoot.ListView.view)
+ return
+ // Lay out and center the returning icon before revealing it.
+ delegateRoot.ListView.view.forceLayout()
+ appItem.syncIconPosition()
+ positionAnimationEnabled = true
}
</code_context>
<issue_to_address>
**Returning icons snap into place**
When an icon returns from overflow and its new layout position differs from its previous position, `forceLayout()` updates the delegate position while `positionAnimationEnabled` is false, so the `x`/`y` behaviors do not animate that move. The flag is enabled only after the position has already changed, leaving returning icons to appear at their final position without the position animation.
Preserve the old position through layout preparation, then enable the position behaviors before moving the icon to its new position.
</issue_to_address>
|
BLumia
approved these changes
Nov 26, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia, wjyrich The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
1. Add syncIconPosition helper in AppItem to stop the timer and refresh icon geometry. 2. Replace overflow opacity/scale behaviors with explicit state-driven updates. 3. Prepare layout and icon position before revealing icons returning from overflow. 4. Reset position animation flag when overflow visibility changes. Log: Fix flickering and misplaced icons when apps return from dock overflow. Influence: Overflow icon animations are smoother and correctly positioned. fix(dock): 稳定溢出图标显示动画 1. 在 AppItem 中新增 syncIconPosition,停止定时器并刷新图标位置。 2. 用状态驱动的显式更新替换溢出透明度与缩放动画。 3. 图标从溢出区返回前先完成布局和位置准备再显示。 4. 溢出可见性变化时重置位置动画标志。 Log: 修复应用从任务栏溢出区返回时图标闪烁和位置错误的问题。 Influence: 溢出图标动画更流畅且位置正确。 PMS: BUG-384521
wjyrich
force-pushed
the
fix-bug-384521
branch
from
November 26, 2026 11:54
5f8665e to
60ca1a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Log: Fix flickering and misplaced icons when apps return from dock overflow.
Influence: Overflow icon animations are smoother and correctly positioned.
fix(dock): 稳定溢出图标显示动画
Log: 修复应用从任务栏溢出区返回时图标闪烁和位置错误的问题。
Influence: 溢出图标动画更流畅且位置正确。
PMS: BUG-384521
Summary by Sourcery
Stabilize dock overflow icon reveal transitions so returning applications appear smoothly and in the correct position.
Bug Fixes:
Enhancements: